import request from '@/utils/request'

export function getAll() {

  return request({
    url: `/client/getAll`,
    method: 'get'
  })
}
export function upsert(data) {
  return request({
    url: `/client/upsert`,
    method: 'post',
    data:data
  })
}
export function removed(data) {
  return request({
    url: `/client/deleteById?id=`+data.id,
    method: 'delete',
    // data:id
  })
}
